package com.yufa.springcloud.feign;

import com.yufa.springcloud.pojo.User;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class FeignClient01Hystrix implements FeignClient01 {
    @Override
    public User getUser(Long id) {
        return new User().setId(-100L).setDate(new Date());
    }

    @Override
    public User get_User(User user) {
        return new User().setId(-101L).setDate(new Date());
    }
}
